package com.grz.service.impl;

import com.grz.dao.IStudentDao;
import com.grz.dao.impl.StudentDaoImpl;
import com.grz.domain.Student;
import com.grz.service.IStudentService;

import java.sql.SQLException;
import java.util.List;

public class StudentServiceImpl implements IStudentService {
    private IStudentDao studentDao;
    public StudentServiceImpl(IStudentDao studentDao){
        this.studentDao=studentDao;
    }

    @Override
    public List<Student> getStudent(Student student) throws SQLException {
        return studentDao.list(student);
    }

    @Override
    public Student getStudent(int id) {
        return null;
    }

    @Override
    public int addStudennt(Student student) {
        return 0;
    }

    @Override
    public int updateStudent(Student student) {
        return 0;
    }

    @Override
    public int deleteStudent(int id) {
        return 0;
    }
}
